package cn.csc.module.product.enums;

import cn.csc.framework.common.exception.ErrorCode;

/**
 * @author liuchuang
 * @version 1.0
 * @date 2024/1/3 14:15
 * @modify
 */
public interface ErrorCodeConstants {

    ErrorCode ATTR_NOT_EXISTS = new ErrorCode(1006001001, "属性信息不存在");

    ErrorCode ATTR_CATEGORY_NOT_EXISTS = new ErrorCode(1006002001, "属性与分类关联信息不存在");

    ErrorCode ATTR_VALUE_NOT_EXISTS = new ErrorCode(1006003001, "属性值信息不存在");

    ErrorCode BRAND_NOT_EXISTS = new ErrorCode(1006004001, "品牌信息不存在");

    ErrorCode CATEGORY_NOT_EXISTS = new ErrorCode(1006005001, "分类信息不存在");

    ErrorCode CATEGORY__EXISTS_PRODUCT= new ErrorCode(1006005002, "分类下存在商品,不能删除");
    ErrorCode CATEGORY__DISPLAY_PRODUCT= new ErrorCode(1006005003, "分类下存在商品,不能禁用");
    ErrorCode CATEGORY__MUCH_PRODUCT= new ErrorCode(1006005003, "分类下商品达不到数量");
    ErrorCode CATEGORY__UPDATE_PRODUCT= new ErrorCode(1006005004, "分类下有商品,不能修改类目名称");

    ErrorCode CATEGORY_BRAND_NOT_EXISTS = new ErrorCode(1006006001, "品牌分类关联信息不存在");

    ErrorCode SPU_EXTENSION_NOT_EXISTS = new ErrorCode(1006007001, "商品扩展信息不存在");

    ErrorCode SOP_CART_ITEM_NOT_EXISTS = new ErrorCode(1006008001, "购物车信息不存在");

    ErrorCode SKU_NOT_EXISTS = new ErrorCode(1006009001, "sku信息不存在");

    ErrorCode SPU_SEACH_CONTEXT_NOT_EXISTS = new ErrorCode(1007009001, "商品搜索内容不存在");

    ErrorCode SPU_NOT_EXISTS = new ErrorCode(1006010001, "商品信息不存在或者已经下架");
    ErrorCode SPU_STATUS_VERIFY = new ErrorCode(1006010002, "请先下架才能编辑或删除");
    ErrorCode SPU_SIZE_VERIFY = new ErrorCode(1006010003, "商品规格数量不匹配,请检查");
    ErrorCode SPU_STATUS_VERIFY2 = new ErrorCode(1006010004, "上下架操作的状态不匹配");
    ErrorCode SPU_COLLECT_IN_EXISTS = new ErrorCode(1006010005, "商品已经收藏");
    ErrorCode SPU_COLLECT_FAIL = new ErrorCode(1006010005, "商品取消收藏失败");
    ErrorCode SPU_SHOPNAME_NOT_EXISTS = new ErrorCode(1006010006, "店铺信息不存在");
    ErrorCode SPU_SHOPNAME_ERROR = new ErrorCode(1006010007, "查询店铺开小差");

    ErrorCode SPU_ATTR_VALUE_NOT_EXISTS = new ErrorCode(1006011001, "商品规格属性关联信息不存在");

    ErrorCode SPU_DETAIL_NOT_EXISTS = new ErrorCode(1006012001, "商品详情信息不存在");

    ErrorCode SPU_SKU_ATTR_VALUE_NOT_EXISTS = new ErrorCode(1006013001, "商品sku销售属性关联信息不存在");

    ErrorCode SKU_STOCK_NOT_EXISTS = new ErrorCode(1006014001, "库存信息不存在");

    //      --------------商品库存锁定--------------
    ErrorCode SKU_STOCK_LOCK_NOT_EXISTS = new ErrorCode(1006015001, "库存锁定信息不存在");
    /**
     * 库存不足，body会具体返回那个skuid的库存不足
     */
    ErrorCode SKU_STOCK_LOCK_UNDER_STOCK = new ErrorCode(1006015002, "库存不足，商品skuId: s%");
    ErrorCode SKU_STOCK_LOCK_MESSAGE_SEND_FAIL = new ErrorCode(1006015003, "库存锁定mq信息发送失败");

    ErrorCode SPU_TAG_NOT_EXISTS = new ErrorCode(1006016001, "商品标签信息不存在");

    ErrorCode SPU_TAG_REFERENCE_NOT_EXISTS = new ErrorCode(1006017001, "商品标签关联信息不存在");

    ErrorCode ATTR_JSON_NOT_EXISTS = new ErrorCode(1006018001, "spu属性规格参数值信息不存在");
    ErrorCode ATTR_JSON_EXISTS = new ErrorCode(1006018002, "属性规格参数存在相同的值");

    ErrorCode SKU_ATTR_JSON_NOT_EXISTS = new ErrorCode(1006019001, "商品sku属性关联JSON信息不存在");


}
